using System;
using System.Data;
using System.Collections;

namespace APP.QUANLY.Entity.ConditionForm
{
    /// <summary>
    /// Summary description for MATHANG.
   /// </summary>
    public class MATHANGConditionForm
    {

        #region Fields
      private Int32 _MAMATHANG;
      private string _MABARCODE;
      private string _MACODE;
      private string _TENMATHANG;
      private byte[] _HINHANH;
      private Int32 _MADONVISI;
      private Int32 _MADONVILE;
      private Int32 _SOLUONGQUYDOI;
      private Int32 _VAT;
      private double _CHIETKHAU;
      private string _XUATXU;
      private decimal _GIANHAP;
      private decimal _GIALE;
      private decimal _GIAQUYDINH;
      private decimal _GIACHIATHANG;
      private decimal _GIAKHUYENMAI;
      private decimal _NGUONGNHAP;
      private decimal _NGUONGXUAT;
      private bool _ISKHUYENMAI;
      private bool _ISUSE;
      private bool _ISDELETE;
      private bool _ISTHEODOI;
      private DateTime _NGAYTAO;
      private string _NGUOITAO;
      private DateTime _NGAYCAPNHAT;
      private string _NGUOICAPNHAT;
      private Int32 _MALOAIMATHANG;
      private string _GHICHU;
      private HOADONXUATKHOCHITIETList _listHOADONXUATKHOCHITIET;
      private HOADONHAPKHOCHITIETList _listHOADONHAPKHOCHITIET;
      private KHOMATHANGList _listKHOMATHANG;
      private MATHANGKHUYENMAIList _listMATHANGKHUYENMAI;
        #endregion

        #region Properties
	public bool IsSetMAMATHANG;  
    public bool IsMAMATHANGNullable
      { get { return false;  } }
      public Int32 MAMATHANG
      {
         get { return _MAMATHANG; }
         set { 
		_MAMATHANG = value; 
		IsSetMAMATHANG = true;
		}
      }
	public bool IsSetMABARCODE;
	public bool IsMABARCODENullable
      { get { return true;  } }
      public string MABARCODE
      {
         get { return _MABARCODE;  }
         set { 
		_MABARCODE = value; 
		IsSetMABARCODE = true;
		}
      }
	public bool IsSetMACODE;
	public bool IsMACODENullable
      { get { return true;  } }
      public string MACODE
      {
         get { return _MACODE;  }
         set { 
		_MACODE = value; 
		IsSetMACODE = true;
		}
      }
	public bool IsSetTENMATHANG;
	public bool IsTENMATHANGNullable
      { get { return true;  } }
      public string TENMATHANG
      {
         get { return _TENMATHANG;  }
         set { 
		_TENMATHANG = value; 
		IsSetTENMATHANG = true;
		}
      }
	public bool IsSetHINHANH;
	public bool IsHINHANHNullable
      { get { return true;  } }
      public byte[] HINHANH
      {
         get { return _HINHANH;  }
         set { 
		_HINHANH = value; 
		IsSetHINHANH = true;
		}
      }
	public bool IsSetMADONVISI;
	public bool IsMADONVISINullable
      { get { return true;  } }
      public Int32 MADONVISI
      {
         get { return _MADONVISI;  }
         set { 
		_MADONVISI = value; 
		IsSetMADONVISI = true;
		}
      }
	public bool IsSetMADONVILE;
	public bool IsMADONVILENullable
      { get { return true;  } }
      public Int32 MADONVILE
      {
         get { return _MADONVILE;  }
         set { 
		_MADONVILE = value; 
		IsSetMADONVILE = true;
		}
      }
	public bool IsSetSOLUONGQUYDOI;
	public bool IsSOLUONGQUYDOINullable
      { get { return true;  } }
      public Int32 SOLUONGQUYDOI
      {
         get { return _SOLUONGQUYDOI;  }
         set { 
		_SOLUONGQUYDOI = value; 
		IsSetSOLUONGQUYDOI = true;
		}
      }
	public bool IsSetVAT;
	public bool IsVATNullable
      { get { return true;  } }
      public Int32 VAT
      {
         get { return _VAT;  }
         set { 
		_VAT = value; 
		IsSetVAT = true;
		}
      }
	public bool IsSetCHIETKHAU;
	public bool IsCHIETKHAUNullable
      { get { return true;  } }
      public double CHIETKHAU
      {
         get { return _CHIETKHAU;  }
         set { 
		_CHIETKHAU = value; 
		IsSetCHIETKHAU = true;
		}
      }
	public bool IsSetXUATXU;
	public bool IsXUATXUNullable
      { get { return true;  } }
      public string XUATXU
      {
         get { return _XUATXU;  }
         set { 
		_XUATXU = value; 
		IsSetXUATXU = true;
		}
      }
	public bool IsSetGIANHAP;
	public bool IsGIANHAPNullable
      { get { return true;  } }
      public decimal GIANHAP
      {
         get { return _GIANHAP;  }
         set { 
		_GIANHAP = value; 
		IsSetGIANHAP = true;
		}
      }
	public bool IsSetGIALE;
	public bool IsGIALENullable
      { get { return true;  } }
      public decimal GIALE
      {
         get { return _GIALE;  }
         set { 
		_GIALE = value; 
		IsSetGIALE = true;
		}
      }
	public bool IsSetGIAQUYDINH;
	public bool IsGIAQUYDINHNullable
      { get { return true;  } }
      public decimal GIAQUYDINH
      {
         get { return _GIAQUYDINH;  }
         set { 
		_GIAQUYDINH = value; 
		IsSetGIAQUYDINH = true;
		}
      }
	public bool IsSetGIACHIATHANG;
	public bool IsGIACHIATHANGNullable
      { get { return true;  } }
      public decimal GIACHIATHANG
      {
         get { return _GIACHIATHANG;  }
         set { 
		_GIACHIATHANG = value; 
		IsSetGIACHIATHANG = true;
		}
      }
	public bool IsSetGIAKHUYENMAI;
	public bool IsGIAKHUYENMAINullable
      { get { return true;  } }
      public decimal GIAKHUYENMAI
      {
         get { return _GIAKHUYENMAI;  }
         set { 
		_GIAKHUYENMAI = value; 
		IsSetGIAKHUYENMAI = true;
		}
      }
	public bool IsSetNGUONGNHAP;
	public bool IsNGUONGNHAPNullable
      { get { return true;  } }
      public decimal NGUONGNHAP
      {
         get { return _NGUONGNHAP;  }
         set { 
		_NGUONGNHAP = value; 
		IsSetNGUONGNHAP = true;
		}
      }
	public bool IsSetNGUONGXUAT;
	public bool IsNGUONGXUATNullable
      { get { return true;  } }
      public decimal NGUONGXUAT
      {
         get { return _NGUONGXUAT;  }
         set { 
		_NGUONGXUAT = value; 
		IsSetNGUONGXUAT = true;
		}
      }
	public bool IsSetISKHUYENMAI;
	public bool IsISKHUYENMAINullable
      { get { return true;  } }
      public bool ISKHUYENMAI
      {
         get { return _ISKHUYENMAI;  }
         set { 
		_ISKHUYENMAI = value; 
		IsSetISKHUYENMAI = true;
		}
      }
	public bool IsSetISUSE;
	public bool IsISUSENullable
      { get { return true;  } }
      public bool ISUSE
      {
         get { return _ISUSE;  }
         set { 
		_ISUSE = value; 
		IsSetISUSE = true;
		}
      }
	public bool IsSetISDELETE;
	public bool IsISDELETENullable
      { get { return true;  } }
      public bool ISDELETE
      {
         get { return _ISDELETE;  }
         set { 
		_ISDELETE = value; 
		IsSetISDELETE = true;
		}
      }
	public bool IsSetISTHEODOI;
	public bool IsISTHEODOINullable
      { get { return true;  } }
      public bool ISTHEODOI
      {
         get { return _ISTHEODOI;  }
         set { 
		_ISTHEODOI = value; 
		IsSetISTHEODOI = true;
		}
      }
	public bool IsSetNGAYTAO;
	public bool IsNGAYTAONullable
      { get { return true;  } }
      public DateTime NGAYTAO
      {
         get { return _NGAYTAO;  }
         set { 
		_NGAYTAO = value; 
		IsSetNGAYTAO = true;
		}
      }
	public bool IsSetNGUOITAO;
	public bool IsNGUOITAONullable
      { get { return true;  } }
      public string NGUOITAO
      {
         get { return _NGUOITAO;  }
         set { 
		_NGUOITAO = value; 
		IsSetNGUOITAO = true;
		}
      }
	public bool IsSetNGAYCAPNHAT;
	public bool IsNGAYCAPNHATNullable
      { get { return true;  } }
      public DateTime NGAYCAPNHAT
      {
         get { return _NGAYCAPNHAT;  }
         set { 
		_NGAYCAPNHAT = value; 
		IsSetNGAYCAPNHAT = true;
		}
      }
	public bool IsSetNGUOICAPNHAT;
	public bool IsNGUOICAPNHATNullable
      { get { return true;  } }
      public string NGUOICAPNHAT
      {
         get { return _NGUOICAPNHAT;  }
         set { 
		_NGUOICAPNHAT = value; 
		IsSetNGUOICAPNHAT = true;
		}
      }
	public bool IsSetMALOAIMATHANG;
	public bool IsMALOAIMATHANGNullable
      { get { return true;  } }
      public Int32 MALOAIMATHANG
      {
         get { return _MALOAIMATHANG;  }
         set { 
		_MALOAIMATHANG = value; 
		IsSetMALOAIMATHANG = true;
		}
      }
	public bool IsSetGHICHU;
	public bool IsGHICHUNullable
      { get { return true;  } }
      public string GHICHU
      {
         get { return _GHICHU;  }
         set { 
		_GHICHU = value; 
		IsSetGHICHU = true;
		}
      }
      public HOADONXUATKHOCHITIETList HOADONXUATKHOCHITIETList
      { get { return _listHOADONXUATKHOCHITIET; } }
      public HOADONHAPKHOCHITIETList HOADONHAPKHOCHITIETList
      { get { return _listHOADONHAPKHOCHITIET; } }
      public KHOMATHANGList KHOMATHANGList
      { get { return _listKHOMATHANG; } }
      public MATHANGKHUYENMAIList MATHANGKHUYENMAIList
      { get { return _listMATHANGKHUYENMAI; } }
        #endregion

        #region Constructors
        public MATHANGConditionForm()
        {
         Reset();
        }
        #endregion

        public void Reset()
        {
            	 _MAMATHANG = EmptyValues.v_Int32;
	IsSetMAMATHANG = false;
	 _MABARCODE = EmptyValues.v_string;
	IsSetMABARCODE = false;
	 _MACODE = EmptyValues.v_string;
	IsSetMACODE = false;
	 _TENMATHANG = EmptyValues.v_string;
	IsSetTENMATHANG = false;
	 _HINHANH = EmptyValues.v_bytes;
	IsSetHINHANH = false;
	 _MADONVISI = EmptyValues.v_Int32;
	IsSetMADONVISI = false;
	 _MADONVILE = EmptyValues.v_Int32;
	IsSetMADONVILE = false;
	 _SOLUONGQUYDOI = EmptyValues.v_Int32;
	IsSetSOLUONGQUYDOI = false;
	 _VAT = EmptyValues.v_Int32;
	IsSetVAT = false;
	 _CHIETKHAU = EmptyValues.v_double;
	IsSetCHIETKHAU = false;
	 _XUATXU = EmptyValues.v_string;
	IsSetXUATXU = false;
	 _GIANHAP = EmptyValues.v_decimal;
	IsSetGIANHAP = false;
	 _GIALE = EmptyValues.v_decimal;
	IsSetGIALE = false;
	 _GIAQUYDINH = EmptyValues.v_decimal;
	IsSetGIAQUYDINH = false;
	 _GIACHIATHANG = EmptyValues.v_decimal;
	IsSetGIACHIATHANG = false;
	 _GIAKHUYENMAI = EmptyValues.v_decimal;
	IsSetGIAKHUYENMAI = false;
	 _NGUONGNHAP = EmptyValues.v_decimal;
	IsSetNGUONGNHAP = false;
	 _NGUONGXUAT = EmptyValues.v_decimal;
	IsSetNGUONGXUAT = false;
	 _ISKHUYENMAI = EmptyValues.v_bool;
	IsSetISKHUYENMAI = false;
	 _ISUSE = EmptyValues.v_bool;
	IsSetISUSE = false;
	 _ISDELETE = EmptyValues.v_bool;
	IsSetISDELETE = false;
	 _ISTHEODOI = EmptyValues.v_bool;
	IsSetISTHEODOI = false;
	 _NGAYTAO = EmptyValues.v_DateTime;
	IsSetNGAYTAO = false;
	 _NGUOITAO = EmptyValues.v_string;
	IsSetNGUOITAO = false;
	 _NGAYCAPNHAT = EmptyValues.v_DateTime;
	IsSetNGAYCAPNHAT = false;
	 _NGUOICAPNHAT = EmptyValues.v_string;
	IsSetNGUOICAPNHAT = false;
	 _MALOAIMATHANG = EmptyValues.v_Int32;
	IsSetMALOAIMATHANG = false;
	 _GHICHU = EmptyValues.v_string;
	IsSetGHICHU = false;
         _listHOADONXUATKHOCHITIET = new HOADONXUATKHOCHITIETList();
         _listHOADONHAPKHOCHITIET = new HOADONHAPKHOCHITIETList();
         _listKHOMATHANG = new KHOMATHANGList();
         _listMATHANGKHUYENMAI = new MATHANGKHUYENMAIList();
        }
    }
}